function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: 'rowIndex',
      width: 80,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '机构名称',
      dataIndex: 'orgName',
      align: 'center',
      width: 260,
      scopedSlots: { customRender: 'orgName' }
    },
    {
      title: '项目名称',
      dataIndex: 'proName',
      align: 'center',
      width: 260,
      scopedSlots: { customRender: 'proName' }
    },
    {
      title: '开工时间',
      dataIndex: 'proStartTime',
      align: 'center',
      width: 140,
    },
    {
      title: '违规信息',
      dataIndex: 'wgxx',
      align: 'center',
      scopedSlots: { customRender: 'wgxx' }
    },
    {
      title: '操作',
      align: 'center',
      dataIndex: 'action',
      width: 150,
      scopedSlots: { customRender: 'action' }
    }
  ]
  return cols
}

export default columns
